<%@ page language="java" contentType="text/html; charset=utf-8"  pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>


<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Dashboard">
    <meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">

    <title>我的还款计划</title>

    <!-- Bootstrap core CSS -->
    <link href="res/assets/css/bootstrap.css" rel="stylesheet">
    <!--external css-->
    <link href="res/assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="res/assets/css/zabuto_calendar.css">
    <link rel="stylesheet" type="text/css" href="res/assets/js/gritter/css/jquery.gritter.css" />
    <link rel="stylesheet" type="text/css" href="res/assets/lineicons/style.css">    
    
    <!-- Custom styles for this template -->
    <link href="res/assets/css/style.css" rel="stylesheet">
    <link href="res/assets/css/style-responsive.css" rel="stylesheet">

    <script src="res/assets/js/chart-master/Chart.js"></script>
    
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>
<input type="hidden" id="cc" value="${yonghuming}">
  <script type="text/javascript">
    window.onload = function shan(){
     
   
      var pan = document.getElementById("cc").value;
      var pz = "";
      if (pan == pz) {
         alert("未登录，请先登录！");
         window.location.href="http://localhost:8081/daikuan/denglu?";
      };
    }

    function qx(){
      alert("权限不足！");
      return false;
    }
    </script>
  <section id="container" >
      <!-- **********************************************************************************************************************************************************
      TOP BAR CONTENT & NOTIFICATIONS
      *********************************************************************************************************************************************************** -->
      <!--header start-->
      <header class="header black-bg">
              <div class="sidebar-toggle-box">
                  <div class="fa fa-bars tooltips" data-placement="right" data-original-title="Toggle Navigation"></div>
              </div>
            <!--logo start-->
            <a  class="logo"><b>欢迎：${yonghuming}</b> </a>
            <!--logo end-->
            <div class="nav notify-row" id="top_menu">
                <!--  notification start -->
                
                <!--  notification end -->
            </div>
            <div class="top-menu">
            	<ul class="nav pull-right top-menu">
                    <li><a class="logout" href="tuichu?">退出</a></li>
            	</ul>
            </div>
        </header>
      <!--header end-->
      
      <!-- **********************************************************************************************************************************************************
      MAIN SIDEBAR MENU
      *********************************************************************************************************************************************************** -->
      <!--sidebar start-->
      <aside>
          <div id="sidebar"  class="nav-collapse ">
              <!-- sidebar menu start-->
              <ul class="sidebar-menu" id="nav-accordion">
              
              	   <p class="centered"><a ><img src="res/assets/img/ui-sam.jpg" class="img-circle" width="60"></a></p>
                  <h5 class="centered">汽车贷款系统</h5>
                    
                  <li class="mt">
                      <a class="active" href="zhuye?">
                          <i class="fa fa-dashboard"></i>
                          <span>主页</span>
                      </a>
                  </li>

                  <li class="sub-menu">
                      <a href="javascript:;" >
                          <i class="fa fa-desktop"></i>
                          <span>贷款</span>
                      </a>
                      <ul class="sub">
                          <li><a  href="daikuanye?">贷款申请</a></li>
                          <li><a  href="huankuanye?">我的还款计划</a></li>
                      </ul>
                  </li>
              </ul>
              <!-- sidebar menu end-->
          </div>
      </aside>
      <!--sidebar end-->
      <div class="copyrights">Collect from <a href="http://www.cssmoban.com/" >网页模板</a></div>
      
      <!-- **********************************************************************************************************************************************************
      MAIN CONTENT
      *********************************************************************************************************************************************************** -->
      <!--main content start-->
      <section id="main-content">
          <section class="wrapper">
            <h3><i class="fa fa-angle-right"></i>还款计划</h3>
              <div class="row">
                  
                  
                <!-- ALERTS EXAMPLES -->
               <div class="row mt">
                  <div class="col-md-12">
                      <div class="content-panel">
                          <table class="table table-striped table-advance table-hover">
                            <!-- <h4><i class="fa fa-angle-right"></i> Advanced Table</h4> -->
                            <hr>
                              <thead>
                              <tr>
                                  <th><i ></i> 客户名</th>
                                  <th><i ></i> 贷款金额</th>
                                  <th><i ></i> 每期还款</th>
                                  <th><i ></i> 分期数</th>
                                  <th><i ></i> 剩余期数</th>
                                  <!-- <th><i ></i> 还款日期</th> -->
                                  <th>状态</th>
                                  <!-- <th>还款</th> -->
                              </tr>
                              </thead>
                              <tbody>
                              
                               <c:forEach var="f" items="${desc}"> 
                              <tr>
                                  <td><a >${f.kehuming}</a></td>
                                  <td class="hidden-phone">￥${f.zongjine}.00</td>
                                  <td>￥${f.meiqihuankuan}.00 </td>
                                   <td>${f.fenqishu} </td>
                                    <td>${f.shengyuqishu} </td>
                                     <!-- <td>${f.zongjine} </td> -->
                                  <td><span class="label label-success label-mini">${f.zhuangtai}</span></td>
                                  <!-- <td><a href="htxiangxibiaodanchuli?id=${f.id}" onclick="return del();">还款</a> </td> -->
                                 <!--  <td>
                                      <a href="#"> <button class="btn btn-success btn-xs"><i class="fa fa-check"></i></button></a>
                                      <button class="btn btn-primary btn-xs"><i class="fa fa-pencil"></i></button>
                                      <button class="btn btn-danger btn-xs"><i class="fa fa-trash-o "></i></button>
                                  </td> -->
                              </tr>
                            </c:forEach>
                               <c:forEach var="f" items="${desc1}"> 
                              <tr>
                                 <td><a>${f.kehuming}</a></td>
                                  <td class="hidden-phone">￥${f.zongjine}.00</td>
                                  <td>￥${f.meiqihuankuan}.00 </td>
                                   <td>${f.fenqishu} </td>
                                    <td>${f.shengyuqishu} </td>
                                     <!-- <td>${f.zongjine} </td> -->
                                  <td><span class="label label-warning label-mini">${f.zhuangtai}</span></td>
                                  <td><</td>
                                 <!--  <td>
                                      <a href="#"> <button class="btn btn-success btn-xs"><i class="fa fa-check"></i></button></a>
                                      <button class="btn btn-primary btn-xs"><i class="fa fa-pencil"></i></button>
                                      <button class="btn btn-danger btn-xs"><i class="fa fa-trash-o "></i></button>
                                  </td> -->
                              </tr>
                            </c:forEach>
              
                              </tbody>
                          </table>
                      </div><!-- /content-panel -->
                  </div><!-- /col-md-12 -->
              </div><!-- /row -->

                  <!-- /col-lg-9 END SECTION MIDDLE -->
                  
                  
      <!-- **********************************************************************************************************************************************************
      RIGHT SIDEBAR CONTENT
      *********************************************************************************************************************************************************** -->                  
                  
                 
              </div><!--/row -->
          </section>
      </section>

      <!--main content end-->
      <!--footer start-->
      <footer class="site-footer">
          <div class="text-center">
              <!-- 2014 - Alvarez.is - More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a> -->
              <!-- <a href="index.html#" class="go-top">
                  <i class="fa fa-angle-up"></i>
              </a> -->
          </div>
      </footer>
      <!--footer end-->
  </section>

    <!-- js placed at the end of the document so the pages load faster -->
    <script src="res/assets/js/jquery.js"></script>
    <script src="res/assets/js/jquery-1.8.3.min.js"></script>
    <script src="res/assets/js/bootstrap.min.js"></script>
    <script class="include" type="text/javascript" src="res/assets/js/jquery.dcjqaccordion.2.7.js"></script>
    <script src="res/assets/js/jquery.scrollTo.min.js"></script>
    <script src="res/assets/js/jquery.nicescroll.js" type="text/javascript"></script>
    <script src="res/assets/js/jquery.sparkline.js"></script>


    <!--common script for all pages-->
    <script src="res/assets/js/common-scripts.js"></script>
    
    <script type="text/javascript" src="res/assets/js/gritter/js/jquery.gritter.js"></script>
    <script type="text/javascript" src="res/assets/js/gritter-conf.js"></script>

    <!--script for this page-->
    <script src="res/assets/js/sparkline-chart.js"></script>    
	<script src="res/assets/js/zabuto_calendar.js"></script>	
	
	<!-- <script type="text/javascript">
        $(document).ready(function () {
        var unique_id = $.gritter.add({
            // (string | mandatory) the heading of the notification
            title: 'Welcome to Dashgum!',
            // (string | mandatory) the text inside the notification
            text: 'Hover me to enable the Close Button. You can hide the left sidebar clicking on the button next to the logo. Free version for <a href="" target="_blank" style="color:#ffd777">BlackTie.co</a>.',
            // (string | optional) the image to display on the left
            image: 'assets/img/ui-sam.jpg',
            // (bool | optional) if you want it to fade out on its own or just sit there
            sticky: true,
            // (int | optional) the time you want it to be alive for before fading out
            time: '',
            // (string | optional) the class name you want to apply to that specific message
            class_name: 'my-sticky-class'
        });

        return false;
        });
	</script> -->
	
	<script type="application/javascript">
        $(document).ready(function () {
            $("#date-popover").popover({html: true, trigger: "manual"});
            $("#date-popover").hide();
            $("#date-popover").click(function (e) {
                $(this).hide();
            });
        
            $("#my-calendar").zabuto_calendar({
                action: function () {
                    return myDateFunction(this.id, false);
                },
                action_nav: function () {
                    return myNavFunction(this.id);
                },
                ajax: {
                    url: "show_data.php?action=1",
                    modal: true
                },
                legend: [
                    {type: "text", label: "Special event", badge: "00"},
                    {type: "block", label: "Regular event", }
                ]
            });
        });
        
        
        function myNavFunction(id) {
            $("#date-popover").hide();
            var nav = $("#" + id).data("navigation");
            var to = $("#" + id).data("to");
            console.log('nav ' + nav + ' to: ' + to.month + '/' + to.year);
        }
    </script>
  
<script type="text/javascript">
function del() {
    var msg = "是否确认还款？\n\n请确认！";
    if (confirm(msg)==true){
    return true;
    }else{
    return false;
    }
}
</script>
  </body>
</html>
